package com.heima.article.job;

import com.heima.article.service.IComputeService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HotArticleJob {

    @Autowired
    private IComputeService computeService;

    @XxlJob("computeHotArticleJob")
    public ReturnT<String> computeHotArticleJob(String param) throws Exception {
        computeService.compute();
        return ReturnT.SUCCESS;
    }
}
